﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;

using Global.Class.Library;

namespace DataTransferObject
{
    public class MarketingProgramMechanicScheme : NotifyPropertyChangeObject
    {
        private int mechanicSchemeID;
        private string description;
        private string remarks;


        public MarketingProgramMechanicScheme()
            : this(0, "", "")
        {
        }

        public MarketingProgramMechanicScheme(int mechanicSchemeID, string description, string remarks)
        {
            GlobalDefaultValue.Apply(this);

            this.MechanicSchemeID = mechanicSchemeID;
            this.Description = description;
            this.Remarks = remarks;
        }


        #region Properties


        [DefaultValue(0)]
        public int MechanicSchemeID
        {
            get { return this.mechanicSchemeID; }
            set { ApplyPropertyChange<MarketingProgramMechanicScheme, int>(ref this.mechanicSchemeID, o => o.MechanicSchemeID, value); }
        }

        [DefaultValue("")]
        public string Description
        {
            get { return this.description; }
            set { ApplyPropertyChange<MarketingProgramMechanicScheme, string>(ref this.description, o => o.Description, value); }
        }

        [DefaultValue("")]
        public string Remarks
        {
            get { return this.remarks; }
            set { ApplyPropertyChange<MarketingProgramMechanicScheme, string>(ref this.remarks, o => o.Remarks, value); }
        }

        #endregion
    }
}
